package member.base.model;

import m.common.model.FieldMeta;
import m.common.model.LinkTableMeta;
import m.common.model.TableMeta;
import m.common.model.type.FieldType;

@TableMeta(name="b_user_info",description="用户表")
public class UserInfo extends StatusModel {
    @LinkTableMeta(name="business_oid",table= BusinessInfo.class,description="所属商家")
    private BusinessInfo business;
    @LinkTableMeta(name="store_oid",table= StoreInfo.class,description="所属店铺")
    private StoreInfo store;

    @FieldMeta(name="real_name",type= FieldType.STRING,length=20,description="姓名")
    private String realName;
    @FieldMeta(name="phone_num",type= FieldType.STRING,length=20,description="手机号")
    private String phoneNum;
    @FieldMeta(name="password",type= FieldType.STRING,length=50,description="密码")
    private String password;
    @FieldMeta(name="token",type= FieldType.STRING,length=50,description="token")
    private String token;
    @FieldMeta(name="powers",type= FieldType.STRING,length = 50,description="类型",dictOption = "A:管理,B:店长")
    private String[] powers;
    public final static String PowerManage="A";
    public final static String PowerStore="B";
    @FieldMeta(name="menus",type= FieldType.STRING,length = 100,description="快捷菜单")
    private String[] menus;

    @FieldMeta(name = "wages",type = FieldType.DOUBLE,description = "月工资")
    private Double wages;
    @FieldMeta(name = "order_ratio",type = FieldType.DOUBLE,description = "订单提成")
    private Double orderRatio;
    @FieldMeta(name = "recharge_ratio",type = FieldType.DOUBLE,description = "充值提成")
    private Double rechargeRatio;

    public Double getWages() {
        return wages;
    }

    public void setWages(Double wages) {
        this.wages = wages;
    }

    public Double getOrderRatio() {
        return orderRatio;
    }

    public void setOrderRatio(Double orderRatio) {
        this.orderRatio = orderRatio;
    }

    public Double getRechargeRatio() {
        return rechargeRatio;
    }

    public void setRechargeRatio(Double rechargeRatio) {
        this.rechargeRatio = rechargeRatio;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String[] getMenus() {
        return menus;
    }

    public StoreInfo getStore() {
        return store;
    }

    public void setStore(StoreInfo store) {
        this.store = store;
    }

    public void setMenus(String[] menus) {
        this.menus = menus;
    }

    public BusinessInfo getBusiness() {
        return business;
    }

    public void setBusiness(BusinessInfo business) {
        this.business = business;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String[] getPowers() {
        return powers;
    }

    public void setPowers(String[] powers) {
        this.powers = powers;
    }
}
